CC = gcc
CFLAGS = -Wall -g -pedantic -std=c99
O_FILES = ./base64.S ./b64_decode.o ./b64_encode.S
EXEC = tp1a
EJEC_SRC = main.c

all: $(EXEC)

clean:
	rm $(O_FILES)
	rm $(EXEC)

execute:
	$(EXEC)

%.o: %.c %.h
	$(CC) $(CFLAGS) -o $@ -c $<

$(EXEC): $(EJEC_SRC) $(O_FILES)
	$(CC) $(CFLAGS) -o $(EXEC) $(EJEC_SRC) $(O_FILES)
